package com.cell.pojo.DTO.order;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class overOrderDTO implements Serializable {
    @NotNull(message = "订单id不能为空")
    private Long id;
    @NotNull(message = "物品重量不能为空")
    @Min(message = "重量必须为大于0的数字",value = 0)
    private BigDecimal weight;
}
